Skip to content

feat(rfc_tools): implement semantic RFC number validator CLI - #10

Open
jtmcdole wants to merge 7 commits into
pr-4-rfc-lintfrom
pr-5-validate-rfc-number
Open

feat(rfc_tools): implement semantic RFC number validator CLI#10
jtmcdole wants to merge 7 commits into
pr-4-rfc-lintfrom
pr-5-validate-rfc-number

Conversation

@jtmcdole

@jtmcdole jtmcdole commented Sep 4, 2026

Copy link
Copy Markdown
Member

PR 5 of 7 for testing and automation

Semantic Number Validation

  • Local and remote collision detection of AAA.NNNN.
  • Adds tooling for Merge Queue blocking (later actions + repository settings required)
  • Gap detection and sequential validation

Stack created with GitHub Stacks CLIGive Feedback 💬

@jtmcdole
jtmcdole force-pushed the pr-5-validate-rfc-number branch from 6f35c65 to 4d05b5c Compare September 4, 2026 15:55
@jtmcdole
jtmcdole force-pushed the pr-5-validate-rfc-number branch from 4d05b5c to 5ec78ed Compare September 4, 2026 17:13
@jtmcdole
jtmcdole marked this pull request as ready for review September 4, 2026 17:21
@jtmcdole
jtmcdole requested review from Piinks and zanderso September 4, 2026 17:26
@jtmcdole
jtmcdole force-pushed the pr-5-validate-rfc-number branch from 5ec78ed to 62b17d9 Compare September 4, 2026 19:33
Comment thread lib/src/validator.dart Outdated
Comment thread lib/src/validator.dart Outdated
@jtmcdole
jtmcdole force-pushed the pr-5-validate-rfc-number branch 2 times, most recently from af02b08 to 7f0cc10 Compare September 4, 2026 22:41
@jtmcdole
jtmcdole requested a review from zanderso September 8, 2026 15:04

@zanderso zanderso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm w/ optional nit

Comment thread lib/src/validator.dart Outdated
Comment thread lib/src/validator.dart
const fs = LocalFileSystem();
final validator = RfcValidator(fs: fs);

final (:isSuccess, :errors) = await validator.validate(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user runs dart run bin/validate_rfc_number.dart --base-branch upstream/main won't the --base-branch flag be silently ignored because checkMain defaults to false?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct, and I think I can use args to check that it was actually passed in by a user. Instead of two flags, I'll add one (base-branch) and if its provided, we'll check against it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(note to self, make sure the action is updated)

@Piinks Piinks left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtmcdole
jtmcdole force-pushed the pr-5-validate-rfc-number branch from 17cdaa4 to dddfef7 Compare September 10, 2026 00:43
@jtmcdole
jtmcdole force-pushed the pr-5-validate-rfc-number branch from dddfef7 to 1ccefe6 Compare September 10, 2026 01:21
@jtmcdole
jtmcdole force-pushed the pr-5-validate-rfc-number branch from 1ccefe6 to f70bf76 Compare September 10, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants